/*
 * @Author: Await
 * @Date: 2025-05-06 18:30:00
 * @LastEditors: Await
 * @LastEditTime: 2025-05-06 18:30:00
 * @Description: 深色主题预设
 */
import { ThemeConfig } from '../../../../types/chartTypes';

const darkTheme: ThemeConfig = {
  themeName: '深色主题',
  color: [
    '#dd6b66',
    '#759aa0',
    '#e69d87',
    '#8dc1a9',
    '#ea7e53',
    '#eedd78',
    '#73a373',
    '#73b9bc',
    '#7289ab',
    '#91ca8c',
    '#f49f42',
  ],
  backgroundColor: '#333',
  textStyle: {
    color: '#eee',
    fontFamily: 'sans-serif',
    fontSize: 12,
  },
  title: {
    textStyle: {
      color: '#eeeeee',
      fontSize: 16,
      fontWeight: 'bold',
    },
    subtextStyle: {
      color: '#aaaaaa',
      fontSize: 12,
    },
  },
  line: {
    symbol: 'circle',
    symbolSize: 4,
    smooth: false,
    lineStyle: {
      width: 2,
      type: 'solid',
    },
  },
  radar: {
    symbolSize: 4,
    lineStyle: {
      width: 2,
    },
    areaStyle: {
      opacity: 0.2,
    },
  },
  tooltip: {
    backgroundColor: 'rgba(50, 50, 50, 0.9)',
    borderColor: '#777',
    borderWidth: 0,
    padding: 5,
    textStyle: {
      color: '#fff',
    },
  },
  axis: {
    axisLine: {
      show: true,
      lineStyle: {
        color: '#666',
        width: 1,
      },
    },
    axisTick: {
      show: true,
      lineStyle: {
        color: '#666',
        width: 1,
      },
    },
    axisLabel: {
      color: '#eee',
      fontSize: 12,
    },
    splitLine: {
      lineStyle: {
        color: ['#555'],
        width: 1,
        type: 'solid',
      },
    },
    splitArea: {
      show: false,
    },
  },
  legend: {
    textStyle: {
      color: '#eee',
      fontSize: 12,
    },
  },
  toolbox: {
    iconStyle: {
      normal: {
        borderColor: '#999',
      },
      emphasis: {
        borderColor: '#ddd',
      },
    },
  },
  timeline: {
    lineStyle: {
      color: '#ccc',
      width: 1,
    },
    itemStyle: {
      color: '#ddd',
      borderWidth: 1,
      borderColor: '#eee',
    },
    controlStyle: {
      color: '#ddd',
      borderColor: '#ddd',
    },
    label: {
      color: '#eee',
    },
    emphasis: {
      itemStyle: {
        color: '#fff',
      },
      label: {
        color: '#fff',
      },
    },
  },
};

export default darkTheme;